package com.micromall.repository;

import com.micromall.repository.entity.RechargeRecord;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Repository
public interface RechargeRecordMapper extends BaseMapper<RechargeRecord> {

	@Update("UPDATE recharge_record set paid_time=#{paidTime}, paid='1' where id=#{id}")
	int updatePayComplete(@Param("id")int id, @Param("paidTime") Date paidTime);
}